<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="app">
        <p>{{msg}}</p>
        <p>{{ msg2() }}</p>
        <p>{{ msg1 }}</p>
        <p><button @click="this.msg+='1'">msg++</button></p>
    </div>
    <script>
        const app = Vue.createApp({
            data() {
                return {
                    msg: 'Hello Vue!'
                }
            },
            methods: {
                msg: function () {
                    return this.msg.split("").reverse().join("")
                }
            },
            conmpute: {
                msg1: function () {
                    return this.msg.split("").reverse().join("")
                }
            }
        })
        app.mount('#app')
    </script>
</body>
</html>